package tmall.domain.entity;

import tmall.common.entity.BaseEntity;

/**
 * image
 * @author 
 */
public class Image extends BaseEntity {
    private Long id;

    /**
     * 0 预览图片,1 详情图片
     */
    private Byte type;

    private String src;

    /**
     * 商品ID
     */
    private Integer goodsId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "Image{" +
                "id=" + id +
                ", type=" + type +
                ", src='" + src + '\'' +
                ", goodsId=" + goodsId +
                "} " + super.toString();
    }
}